import './assets/main.scss'

import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router'
import {createPinia} from 'pinia'
import { createPersistedState } from 'pinia-persistedstate-plugin'
import App from './App.vue'
import locale from 'element-plus/dist/locale/zh-cn.js'
import VueWechatTitle from 'vue-wechat-title'



const app = createApp(App)
const pinia = createPinia()
const persist=createPersistedState();
pinia.use(persist);//使用pinia-persistedstate-plugin插件
app.use(pinia)
app.use(router)
app.use(VueWechatTitle)
app.use(ElementPlus,{locale})
app.mount('#app')
